﻿
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.Info"%>
<%
HashMap user = Info.getUser(request);
String uname = user.get("uname").toString();
String utype = user.get("utype").toString();
 %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin: 0px;
}
-->
</style>
<link href="../admin/global.css" rel="stylesheet" type="text/css" />

<SCRIPT language=javascript>
<!--
function window.onload() { 


if(top.location != self.location){ 

var a = window.parent.document.getElementsByTagName('iframe'); 

for (var i=0; i<a.length; i++){ 

if (a[i].name == self.name) {a[i].height = document.body.scrollHeight; return;}}} 

}

//-->
</script>

</head>

<% 
new CommDAO().delete(request,"hangban"); 
String id = request.getParameter("id"); 
String erjitype = request.getParameter("erjitype"); 
String myztree = request.getParameter("myztree"); 
HashMap ext = new HashMap(); 
new CommDAO().update(request,response,"hangban",ext,true,true); 
HashMap mmm = new CommDAO().getmap(id,"hangban"); 
%>
<body>
	<form action="hangbanxg.jsp?f=f&id=<%=mmm.get("id")%>" name="f1"
		method="post" onsubmit="return checkform()">
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			bgcolor="#FFFFFF" class="main_table_frame">
			<tr>
				<td height="48"><table width="100%" border="0" cellpadding="0"
						cellspacing="0" bgcolor="#F7F7F7" class="main_desk_table">
						<tr>
							<td width="8%" height="6"></td>
						</tr>
						<tr>
							<td><table width="100%" border="0" cellpadding="0"
									cellspacing="0" bgcolor="#F7F7F7">
									<tr>
										<td width="118" class="main_title_td_center">相关信息</td>
										<td align="right" class="main_title_td_bg">&nbsp;</td>

									</tr>
								</table>
								<table width="100%" border="0" cellspacing="0" rules="all"
									style="WIDTH: 100%; BORDER-COLLAPSE: collapse">
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">航线类型</td>
										<td width="912" align="left" class="main_matter_td"><span
											id="hxlxdanx"><label><input type=radio
													name='hxlx' value='国内航班' />&nbsp;国内航班 </label> <label><input
													type=radio name='hxlx' value='国际航班' />&nbsp;国际航班 </label> </span></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">航班号</td>
										<td width="912" align="left" class="main_matter_td"><input
											type=text class='textBox' id='hbno' name='hbno' size=35 /><label
											id='clabelhbno' /></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">飞行航线</td>
										<td width="912" align="left" class="main_matter_td"><input
											type=text class='textBox' id='fxhx' name='fxhx' size=35 /><label
											id='clabelfxhx' /></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">起飞时间</td>
										<td width="912" align="left" class="main_matter_td"><input
											type=text size='19' class='textBox' name='stime'
											onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});" /></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">到达时间</td>
										<td width="912" align="left" class="main_matter_td"><input
											type=text size='19' class='textBox' name='etime'
											onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});" /></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">航空公司</td>
										<td width="912" align="left" class="main_matter_td"><%=Info.getselect("company","company","cname~无名"," 1=1 ")%><label
											id='clabelcompany' /></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">头等舱票价</td>
										<td width="912" align="left" class="main_matter_td"><input
											type=text size='8' class='textBox' id='crprice'
											name='crprice' onkeyup='clearNoNum(this);'
											onblur='clearNoNum(this);' onmouseup='clearNoNum(this);' /><label
											id='clabelcrprice' /></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">普通舱票价</td>
										<td width="912" align="left" class="main_matter_td"><input
											type=text size='8' class='textBox' id='etprice'
											name='etprice' onkeyup='clearNoNum(this);'
											onblur='clearNoNum(this);' onmouseup='clearNoNum(this);' /><label
											id='clabeletprice' /></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">折扣</td>
										<td width="912" align="left" class="main_matter_td"><select
											name='discount'>
												<option value=''>不打折</option>
												<option value='9.5'>9.5</option>
												<option value='9'>9</option>
												<option value='8.5'>8.5</option>
												<option value='8'>8</option>
												<option value='7.5'>7.5</option>
												<option value='7'>7</option>
												<option value='6.5'>6.5</option>
												<option value='6'>6</option>
												<option value='5.5'>5.5</option>
												<option value='5'>5</option>
												<option value='4.5'>4.5</option>
												<option value='4'>4</option>
												<option value='3.5'>3.5</option>
												<option value='3'>3</option>
										</select> <label id='clabeldiscount' /></td>
									</tr>
									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td width="399" align="center" class="main_matter_td">剩票数量</td>
										<td width="912" align="left" class="main_matter_td"><input
											type=text size='8' class='textBox' id='nums' name='nums'
											onkeyup='clearNoNum(this);' onblur='clearNoNum(this);'
											onmouseup='clearNoNum(this);' /><label id='clabelnums' />
										</td>
									</tr>


									<tr
										onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f0f7ff'"
										onmouseout="this.style.backgroundColor=currentcolor">

										<td height="35" colspan="4" align="center"
											class="main_matter_td"><label> <input
												type="submit" name="Submit" value="提交信息" />&nbsp;&nbsp;&nbsp;
												<input type=button value='返回上页' onclick='popclose();' />
										</label></td>
									</tr>
								</table></td>
						</tr>
					</table></td>
			</tr>
		</table>
	</form>
</body>
</html>

<script language=javascript
	src='/npticketsys/js/My97DatePicker/WdatePicker.js'></script>
<script language=javascript src='/npticketsys/js/ajax.js'></script>
<script language=javascript src='/npticketsys/js/popup.js'></script>
<%@page import="util.Info"%>
<%@page import="util.Info"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<%@page import="util.PageManager"%>
<%@page import="dao.CommDAO"%>
<script language=javascript>  
 
</script>
<script language=javascript>  
 function checkform(){  
 
 
  var hbnoobj = document.getElementById("hbno");  
if(hbnoobj.value==""){  
document.getElementById("clabelhbno").innerHTML="&nbsp;&nbsp;<font color=red>请输入航班号</font>";  
return false;  
}else{
document.getElementById("clabelhbno").innerHTML="  ";  
}  
  
var hbnoobj = document.getElementById("hbno");  
if(hbnoobj.value!=""){  
var ajax = new AJAX();
ajax.post("/npticketsys/factory/checkno.jsp?table=sysuser&col=hbno&value="+hbnoobj.value+"&checktype=update&ttime=<%=Info.getDateStr()%>") 
var msg = ajax.getValue();
if(msg.indexOf('Y')>-1){
document.getElementById("clabelhbno").innerHTML="&nbsp;&nbsp;<font color=red>航班号已存在</font>";  
return false;
}else{document.getElementById("clabelhbno").innerHTML="  ";  
}  
}
 
 
 
var fxhxobj = document.getElementById("fxhx");  
if(fxhxobj.value==""){  
document.getElementById("clabelfxhx").innerHTML="&nbsp;&nbsp;<font color=red>请输入飞行航线</font>";  
return false;  
}else{ 
document.getElementById("clabelfxhx").innerHTML="  ";  
}  
var companyobj = document.getElementById("company");  
if(companyobj.value==""){  
document.getElementById("clabelcompany").innerHTML="&nbsp;&nbsp;<font color=red>请输入航空公司</font>";  
return false;  
}else{ 
document.getElementById("clabelcompany").innerHTML="  ";  
}  
var crpriceobj = document.getElementById("crprice");  
if(crpriceobj.value==""){  
document.getElementById("clabelcrprice").innerHTML="&nbsp;&nbsp;<font color=red>请输入头等舱票价</font>";  
return false;  
}else{ 
document.getElementById("clabelcrprice").innerHTML="  ";  
}  
var etpriceobj = document.getElementById("etprice");  
if(etpriceobj.value==""){  
document.getElementById("clabeletprice").innerHTML="&nbsp;&nbsp;<font color=red>请输入普通舱票价</font>";  
return false;  
}else{ 
document.getElementById("clabeletprice").innerHTML="  ";  
}  
var numsobj = document.getElementById("nums");  
if(numsobj.value==""){  
document.getElementById("clabelnums").innerHTML="&nbsp;&nbsp;<font color=red>请输入剩票数量</font>";  
return false;  
}else{ 
document.getElementById("clabelnums").innerHTML="  ";  
}  
return true;   
}   
</script>
<%=Info.tform(mmm)%>
<script language=javascript>  
 
</script>
<%=Info.tform(mmm)%>
